class ball:
    #Requires the position of the ball to be passed in.
    def __init__(self, xPosition, yPosition):
        self.xPosition = xPosition
        self.yPosition = yPosition
        #The ball's direction of travel can be determined by the value of yPosition. If it is 0 the direction is +1 if > 0 it's -1
        if self.yPosition > 0:
            self.direction = -1
        else:
            self.direction = 1
        
